<template>
    <div>
        <TopMenuLayout class="layout-top" v-if="layout == 'top'"/>
        <SiderMenuLayout class="layout-sider" v-else-if="layout == 'sider'"/>
        <div v-else/>
    </div>
</template>

<script>
    import TopMenuLayout from './TopMenuLayout/index';
    import SiderMenuLayout from './SiderMenuLayout';

    export default {
        components: {SiderMenuLayout, TopMenuLayout},
        data() {
            return {layout: 'sider'}
        },
        created() {
            console.log("33333")
            this.$store.commit('initUserCfg');
        }
    }
</script>